package main

import "fmt"

type cat struct {
	age int
}

func getc1(c *cat) {
	c.age = 3
	return
}
func getc2(c cat) {
	c.age = 4

	return
}
func main() {
	c := cat{}
	getc1(&c)
	fmt.Println(c.age)
	c1 := cat{}
	getc2(c1)
	fmt.Println(c1.age)

}
